package net.sx.minemodule.mvp.presenters;

import android.databinding.ObservableField;
import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.mvp.BasePresenter;

/**
 * @author QiQi
 * @ClassName: MineYieldPresenter
 * @date 2018/11/1
 * @description
 */
public class MineYieldPresenter extends BasePresenter {

    public final ObservableField<String> mAmount = new ObservableField<>();
    public final ObservableField<String> friends = new ObservableField<>();
    public final ObservableField<String> commission = new ObservableField<>();

    public MineYieldPresenter() {
        super(null);
    }


    /**
     * 数据加载
     */
    public void load() {

        mAmount.set("0.00");
        friends.set("0");
        commission.set("0.00");
    }

    /**
     * 我的邀请
     *
     * @param view
     */
    public void onMineInvitation(View view) {
        ARouter.getInstance().build(ARouterPath.PATH_MINE_WITH_DRAW_INVITE).navigation();
    }

    /**
     * 收益记录
     *
     * @param view
     */
    public void onYieldRecord(View view) {
        ARouter.getInstance().build(ARouterPath.PATH_MINE_WITH_DRAW_INFO).navigation();
    }

    /**
     * 常见问题
     *
     * @param view
     */
    public void onNormalProblem(View view) {
        ARouter.getInstance().build(ARouterPath.PATH_MINE_COMMON_QUESTION).navigation();
    }

    /**
     * 提现
     *
     * @param view
     */
    public void onWithdraw(View view) {
        ARouter.getInstance().build(ARouterPath.PATH_MINE_PACKAGE_WITH_DRAW).navigation();
    }

    /**
     * 提现记录
     */
    public void withdrawRecord() {

    }
}
